package org.wk.account.enums;



/**
 * @ClassName	: ZhongChangeType
 * @Package		：org.wk.digiccy.enums
 * @Author df.w 
 * @Create Time	：2018年5月9日 下午5:43:55
 * @Description	: 鲸种变动类型
 */ 
public enum ZaiChangeType {
	AUCTION_GOODS("auction_goods","竞拍商品"),
	BUG_GOODS("bug_goods","购买商品"),
	FROM_YUAN("from_yuan","鲸源释放"),
	FROM_ZHONG("from_zhong","鲸种兑换"),
	PRESENT_OTHERS("present_others","赠送他人"),
	VIP_ACTIVATE("vip_activate","VIP激活赠送"),
	TO_LING("to_ling","兑换鲸灵"),
	TO_YUAN("to_yuan","兑换鲸源"),
	TO_ZHONG("to_zhong","兑换鲸种"),
	ACTIVATE_ONESELF("activate_oneself","自己激活鲸种"),
	OTHERS_ACTIVATE("others_activate","他人激活鲸种");
	private String code;
	private String name;
	private ZaiChangeType(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public static ZaiChangeType containsCode(String code) {
		for (ZaiChangeType item : ZaiChangeType.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
}
